import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/login',
            component: () => import('@/views/Login/index.vue'),
            meta: { title: '登录' },
        },
        {
            path: '/',
            redirect: '/payFees',
            meta: { title: '缴费' },
        },
        {
            path: '/payFees',
            component: () => import('@/views/payFees/index.vue'),
            meta: { title: '缴费' },
        },
        {
            path: '/payresult',
            name: 'payresult',
            component: () => import('@/views/payresult/index.vue'),
            meta: { title: '缴费结果页' },
        },
    ],
})

export default router